package domain;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class KonuKatagorisiDomain {
	private String adi="";
	private Collection<Object> bilimDaliField;
	private ArrayList<String>  bilimDallari;
	
	public KonuKatagorisiDomain() {
		bilimDallari = new ArrayList<String>();
	}
	
	public String getAdi() {
		return adi;
	}

	public void setAdi(String adi) {
		this.adi = adi;
	}

	public Collection<Object> getBilimDaliField() {
		return bilimDaliField;
	}

	public void setBilimDaliField(Collection<Object> bilimDaliField) {
		this.bilimDaliField = bilimDaliField;
		setBilimDallari(bilimDaliField.iterator());
	}

	public ArrayList<String> getBilimDallari() {
		return bilimDallari;
	}

	public void setBilimDallari(Iterator<Object> iterator) {
		while(iterator.hasNext())
			this.bilimDallari.add(iterator.next().toString());
	}
}
